import { Injectable, Optional } from '@angular/core';
import { TestService } from 'src/app/test.service';
import { Observable } from 'rxjs';
import { User } from 'src/app/user';
import { Routes } from '@angular/router';
const routes: Routes = [{
}];
export class RouteServiceConfig {
  source: string;
}
@Injectable(
  {
    providedIn: 'root'
  }
)
export class RouteService {
  constructor(private userService: TestService,
    @Optional() routeServiceConfig: RouteServiceConfig) {
    console.log(`routeService constructor completed!`);
  }
  getUsers(): Observable<User[]> {
    return this.userService.getUsers();
  }
}
